package com.feicheng.persistence.mapper;

import com.feicheng.persistence.entity.Product;
import com.feicheng.persistence.model.CategoryPagePojo;
import com.feicheng.persistence.model.ProductPagePojo;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cailongyang
 * @since 2022-02-08
 */
public interface ProductMapper extends BaseMapper<Product> {
	Page<ProductPagePojo> selectProductsByPage(IPage<ProductPagePojo> page, @Param(Constants.WRAPPER) Wrapper wrapper);
	
	Integer[] selectLevelNum(@Param(Constants.WRAPPER) Wrapper wrapper);
}
